package com.toolmanrln.logistics.modules.user.service;

import com.toolmanrln.common.api.dto.TokenDTO;
import com.toolmanrln.logistics.modules.user.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author ToolMan.RLN
 * @since 2020-05-19
 */
public interface IUserService extends IService<User> {

    /**
     *  注册账号
     * @param account 账号
	 * @param password 密码
	 * @param request
     * @return com.toolmanrln.logistics.modules.user.entity.User
     * @author ToolMan.RLN
     * @date 2020-05-25 14:53
     */
    User register(String account, String password, HttpServletRequest request);

    User getByAccount(String account);

    /**
     *  登陆
     * @param account
	 * @param password
	 * @param request
     * @return com.toolmanrln.common.api.dto.TokenDTO
     * @throws
     * @author ToolMan.RLN
     * @date 2020-05-25 16:41
     */
    TokenDTO login(String account, String password, HttpServletRequest request);
}
